package com.smxy.mall.service;

import com.smxy.mall.entity.Car;
import com.smxy.mall.model.Current;
import com.smxy.mall.model.request.car.CarDelReq;
import com.smxy.mall.model.request.car.CarRemoveReq;
import com.smxy.mall.model.request.car.CarReq;
import com.smxy.mall.model.response.CarNumRes;
import com.smxy.mall.model.response.CarResponse;

import java.util.List;

public interface CarService {
    // 购物车添加
    Car save(CarReq carReq,Current current);
    // 购物车减少
    Car remove(CarRemoveReq carRemoveReq, Current current);
    // 删除购物车
    Integer delete(CarDelReq carDelReq,Current current);
    List<Car> findByUserId(Current current);
    List<CarResponse> carList(Integer id,Integer shopId);
    List<CarNumRes> getGoodsNum(Current current);
}
